﻿namespace HY.Web.Models
{
    /// <summary>
    /// 控制器异步返回值
    /// </summary>
    public class ReturnModel
    {
        public int Code { get; set; }

        public int Count { get; set; }

        public string Message { get; set; }

        public object Data { get; set; } = null;
    }
    /// <summary>
    /// 指定Data类型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ReturnModel<T>
    {
        public int Code { get; set; }

        public int Count { get; set; }

        public string Message { get; set; }

        public T Data { get; set; }
    }
}
